package com.itheima.health.jobs;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.health.service.OrderSettingService;

/**
 * @program: itcast_health
 * @create: 2019-10-29 10:56
 * @author: li he
 * @description:
 */
public class ClearOrderSettingJob {

    @Reference
    OrderSettingService orderSettingService;


    public void clearOrderSetting(){
        System.out.println("定时清理预约信息");
        orderSettingService.clearOneMonthAgoOrderSetting();
    }
}